package rpc.common;

import java.io.Serializable;

/**
 * 调用存储
 */
public class MyInvocation implements Serializable {
    private final String interfaceName;
    private final String methodName;
    private final Class<?>[] parameterTypes;
    private final Object[] parameters;

    public MyInvocation(String interfaceName, String methodName, Class<?>[] parameterTypes, Object[] parameters) {
        this.interfaceName = interfaceName;
        this.methodName = methodName;
        this.parameterTypes = parameterTypes;
        this.parameters = parameters;
    }

    public String getInterfaceName() {
        return interfaceName;
    }

    public String getMethodName() {
        return methodName;
    }

    public Class<?>[] getParameterTypes() {
        return parameterTypes;
    }

    public Object[] getParameters() {
        return parameters;
    }
}
